<template>
  <view class="safe-left safe-right safe-bottom">
    <web-view
      src="https://iot.healthgenie.cn/apppages/user.html"
      @message="message"
      @onPostMessage="message"
    />
  </view>
</template>

<script>
export default {
  onLoad() {
    // #ifdef H5
    window.addEventListener(
      "message",
      () => {
        this.message();
      },
      false
    );
    // #endif
  },
  methods: {
    message() {
      this.$navigateBack();
    },
  },
};
</script>

<style scoped lang="scss">
</style>
